package com.wyj.wuliwuli.quartz;

import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@RequiredArgsConstructor

public class ScheduleTask {
    /** 每天晚上23点执行 */
    private static final String EVERY_DAY_23CLOCK = "0 0 23 * * ?";


    @PostConstruct
    @Scheduled(cron = EVERY_DAY_23CLOCK)
    public void createMessage(){

    }
}
